<?php

namespace app\validate;

use think\Validate;

class TaskRepairValidate extends Validate
{
    // GetEffectedTask
    public function sceneGetEffectedTask()
    {
        return $this->append('project_id', 'require')
            ->append('task_id_list', 'require');
    }

    /**
     * @return TaskRepairValidate
     */
    public function sceneGetEffectedTaskInfo(): TaskRepairValidate
    {
        return $this->append('project_id', 'require')
            ->append('step_category_id', 'require')
            ->append('start_time', 'require')
            ->append('end_time', 'require');
    }
}